package com.example.diet_sport;

import com.alibaba.druid.util.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.juli.logging.Log;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

import java.lang.management.ManagementFactory;
import java.net.InetAddress;
import java.net.UnknownHostException;

@Slf4j
@SpringBootApplication
@MapperScan("com.example.diet_sport.mapper")
public class DietSportApplication {
    public static void main(String[] args) throws UnknownHostException {
         SpringApplication.run(DietSportApplication.class, args);
         log.info("\n----------------------------------------------------------\n\t" +
                "Local访问网址: \t\thttp://localhost:8080/user" + "\n\t" +
                "----------------------------------------------------------");

    }
}
